package com.fengxu.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
*@Description 使用ribbon的规则的配置类
*@Author 风珝
*@Date 2021/1/13 20:12
*@Version 1.0.0
*/
@Configuration
public class MySelfRule {

    @Bean
    public IRule getRule(){
        return new CustomRule();
    }

}
